<? global $cat, $info; ?>
<?
	global $kam_admin, $FullUrl, $arr_table, $table_edit, $config_xml_edit, $element, $column, $name_column_view, $lg;
?>
<script language="javascript">

function ValidationForm()
{
	FieldIsValid($("#content_vn"), $("#ContentVNErrorMess"));
	
	return FieldIsValid($("#content_vn"), $("#ContentVNErrorMess"));
}

$(document).ready( function() {
$("#frmEdit").submit(function(){ 
    if(ValidationForm())  
        return true;
    else  
        return false;  
});
});
</script>
<div class="contentcontainer med left">
  <div class="headings alt">
  <h2>Chỉnh sửa cấu hình</h2>
  </div>
  <div class="contentbox">
  <form name="supplier" id="frmEdit" action="admin-pro.html?do=infos&act=<?php
			if($_GET['act'] == 'add')
				print('addsm');
			else
				print('editsm');
        	?>" method="post" enctype="multipart/form-data">
 		
        <?
        	$column = "name_vn";
			$element = $info;
			$name_column_view = 'Tiêu đề';
			Template::UserControlAD('TextBox');
		?>	
        <?
        	$column = "content_vn";
			$element = $info;
			$name_column_view = 'Chi tiết';
			Template::UserControlAD('TextBoxCKEditor');
		?>	
          <input type="hidden" name="id" value="<?=$info['id']?>"  /> 
          <input type="submit" value="submit" class="btn" />
  <div class="clear"></div>
</form>
  </div>
</div>
